﻿#include "MainWindowGenerator.h"

#include "GUIFrame/MainWindow.h"

MainWindowGenerator::MainWindowGenerator()
{
    //    this->setStyle("://Structural.qss");
    //    this->showMaximize(false);
}

MainWindowGenerator::~MainWindowGenerator()
{
//     delete m_MainWindow;
//     m_MainWindow = nullptr;
}

QWidget * MainWindowGenerator::genMainWindow()
{
    if (m_MainWindow == nullptr) {
        m_MainWindow = new GUI::MainWindow;
    }
    return m_MainWindow;
}
